/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package wargame.entity;

import module.GlobalConstant;

/**
 *
 * @author stanley.2007
 */
public class ProjectInject {
    private Integer project_id;
    private Integer dot_net;
    private Integer c_sharp;
    private Integer jsp;
    private Integer php;
    private Integer ruby;
    private Integer mysql;
    private Integer mssql;
    private Integer oracle;
    private Integer price;
    private Integer turn;

    public int getManhourBySkill(int index) {
        switch (index) {
            case GlobalConstant.DOT_NET:
                return dot_net;
            case GlobalConstant.C_SHARP:
                return c_sharp;
            case GlobalConstant.JSP:
                return jsp;
            case GlobalConstant.PHP:
                return php;
            case GlobalConstant.RUBY:
                return ruby;
            case GlobalConstant.MYSQL:
                return mysql;
            case GlobalConstant.MSSQL:
                return mssql;
            case GlobalConstant.ORACLE:
                return oracle;
            default:
                return 0;
        }
    }

    public void setManhourBySkill(int index, Integer value) {
        value = (value == null)? 0 : value;
        switch (index) {
            case GlobalConstant.DOT_NET:
                this.dot_net = value;
                break;
            case GlobalConstant.C_SHARP:
                this.c_sharp = value;
                break;
            case GlobalConstant.JSP:
                this.jsp = value;
                break;
            case GlobalConstant.PHP:
                this.php = value;
                break;
            case GlobalConstant.RUBY:
                this.ruby = value;
                break;
            case GlobalConstant.MYSQL:
                this.mysql = value;
                break;
            case GlobalConstant.MSSQL:
                this.mssql = value;
                break;
            case GlobalConstant.ORACLE:
                this.oracle = value;
                break;
        }
    }

    public Integer getC_sharp() {
        return c_sharp;
    }

    public void setC_sharp(Integer c_sharp) {
        this.c_sharp = (c_sharp == null)? 0: c_sharp;
    }

    public Integer getDot_net() {
        return dot_net;
    }

    public void setDot_net(Integer dot_net) {
        this.dot_net = (dot_net == null)? 0: dot_net;
    }

    public Integer getJsp() {
        return jsp;
    }

    public void setJsp(Integer jsp) {
        this.jsp = (jsp == null)? 0: jsp;
    }

    public Integer getMssql() {
        return mssql;
    }

    public void setMssql(Integer mssql) {
        this.mssql = (mssql == null)? 0: mssql;
    }

    public Integer getMysql() {
        return mysql;
    }

    public void setMysql(Integer mysql) {
        this.mysql = (mysql == null)? 0: mysql;
    }

    public Integer getOracle() {
        return oracle;
    }

    public void setOracle(Integer oracle) {
        this.oracle = (oracle == null)? 0: oracle;
    }

    public Integer getPhp() {
        return php;
    }

    public void setPhp(Integer php) {
        this.php = (php == null)? 0: php;
    }

    public Integer getPrice() {
        return price;
    }

    public void setPrice(Integer price) {
        this.price = (price == null)? 0: price;
    }

    public Integer getProject_id() {
        return project_id;
    }

    public void setProject_id(Integer project_id) {
        this.project_id = project_id;
    }

    public Integer getRuby() {
        return ruby;
    }

    public void setRuby(Integer ruby) {
        this.ruby = (ruby == null)? 0: ruby;
    }

    public Integer getTurn() {
        return turn;
    }

    public void setTurn(Integer turn) {
        this.turn = turn;
    }

      

}
